package com.vstartek.dm.cxf;

import java.util.List;

import javax.jws.WebService;

import com.vstartek.dm.mongo.model.Detail;
import com.vstartek.dm.mongo.model.VideoData;
import com.vstartek.dm.mongo.model.VideoTag;
import com.vstartek.dm.mongo.model.VideoWeb;
import com.vstartek.dm.util.Page;
import com.vstartek.dm.util.PageParam;

@WebService
public interface DbCenterService {
	
	
	
	VideoWeb findVideoWebById(Object id);
	
	VideoData findVideoDataById(Object id);
	
	VideoTag findVideoTagById(Object id);
	
	Detail findDetailById(Object id,Object xid);
	
	Page<VideoData> findVideoDataByPage(PageParam pageParam,VideoData videoData);
	
	Page<VideoTag> findVideoTagByPage(PageParam pageParam,VideoTag videoTag);
	
	Page<VideoWeb> findVideoWebByPage(PageParam pageParam,VideoWeb videoWeb);
	
	Page<Detail> findDetailByPage(PageParam pageParam, VideoWeb videoWeb);
	
	VideoData saveVideoData(VideoData videoData);
	
	boolean updateVideoData(VideoData videoData);
	
	VideoTag saveVideoTag(VideoTag videoTag);
	
	boolean updateVideoTag(VideoTag videoTag);
	
	VideoWeb saveVideoWeb(VideoWeb videoWeb);
	
	boolean updateVideoWeb(VideoWeb videoWeb);
	
	Detail saveDetail(Object id,Detail detail);
	
	boolean updateDetail(Object id,Detail detail);
	
	List<String> group();
	
}
